package collections;

import java.util.Arrays;
import java.util.List;
import java.util.ListIterator;

public class ListIteratorTest1 {
    public static void main(String[] args) {
        test1();
    }

    /**
     * next和previous返回是相同的元素
     */
    public static void test1() {
        List<Integer> asList = Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
        ListIterator<Integer> i = asList.listIterator(0);
        System.out.println(i.next());// 0
        System.out.println(i.previous());// 0
    }
}
